

      <div class="AccordionPanel">
        <div class="AccordionPanelTab" onclick="cleanAllStates()">
        	<div class="PanelTabImg"></div>Veh&iacute;culos
        </div>

        <div class="AccordionPanelContent">
        	<input type="hidden" id="titulo" value="1" name="titulo"/>

            <!-- MENU PRINCIPAL -->
            <div id="div_vehiculosPpal">
            <div class="minimenu" id="minimenuVehiculos">
                <div class="buttonBar">
                	<?php if ($LOGIN->esFlota){?>
	            	<input type="button" class="BTNselectAll" onclick="checkAllOptions('boxVehiculos[]', true);" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Seleccionar todos los vehiculos');" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
					<input type="button" class="BTNunselectAll" onclick="checkAllOptions('boxVehiculos[]', false);" onmouseover="minimenuInfoSet('minimenuVehiculos', 'No seleccionar ningun vehiculo');" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
                    <?php if ($LOGIN->PERMISOS[0]){?>
                    <input type="button" class="BTNaddGroup" onclick="nuevoGrupoVehiculos();" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Crear un nuevo grupo de vehiculos');" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
                    <?php }?>
                    <input type="button" class="BTNview" onclick="cMapController.getMapActive().verMovilesSeleccionados();//verMovilesSeleccionados();" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Ver los vehiculos seleccionados');" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
                    <input type="button" class="BTNocultar" onclick="cMapController.getMapActive().ocultarMovilesSeleccionados();//ocultarMovilesSeleccionados();" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Ocultar los vehiculos seleccionados');" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
                    <?php }?>
                    <?php if ($LOGIN->PERMISOS[1]){ ?>
                    <input type="button" class="BTNmonitor" onclick="monitorearMovilesSeleccionados();" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Monitorear los vehiculos seleccionados', true);" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
                    <input type="button" class="BTNnoMonitor" onclick="noMonitorearMovilesSeleccionados();" onmouseover="minimenuInfoSet('minimenuVehiculos', 'No monitorear los vehiculos seleccionados', true);" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
                    <?php } ?>
                    <?php if (($LOGIN->PERMISOS[2])||($LOGIN->PERMISOS[3])){ ?>
                    <input type="button" class="BTNcommandCenter" onclick="centroDeComandos();" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Enviar comando a todos los vehiculos seleccionados (m&uacute;ltiple)', true);" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
                    <?php } ?>
                    <?php if ($LOGIN->esFlota){?>
                    <input type="button" class="BTNorder" id="orderBTNmisVehiculos" onclick="ordenarMisVehiculos();" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Ordenar alfabeticamente', true);" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
                    <input type="button" class="BTNsearch" onclick="collapseBuscarMoviles();" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Mostrar/ocultar barra de busqueda de vehiculos',true);" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
                    <?php if ($LOGIN->PERMISOS[11]){?>
                    <input type="button" id="filtrarMovilesBTN" class="BTNfiltrar" onclick="filtrarMovilesInactivos();" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Filtrar/Mostrar los vehiculos inactivos',true);" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
                    <?php }?>
                    <?php }?>
                    <?php if ($LOGIN->PERMISOS[14]){?>
                    <input type="button" class="BTNcontactos" onclick="createOpenWindow_contacto()" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Abrir libreta de contactos general',true);" onmouseout="minimenuInfoSet('minimenuVehiculos', '');">
                    <?php }?>
                </div>
                <?php if ($LOGIN->esFlota){?>
                <div class="search-box" id="searcBoxMoviles" style="display:none">
					<input type="text" size="15" class="search-field" name="searchMovilInput" id="searchMovilInput" value="Buscar..." onfocus="if(this.value == 'Buscar...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Buscar...';}"/>
                    <input type="submit"  value="" class="search-go" onclick="searchMovil(document.getElementById('searchMovilInput').value);" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Buscar descripcion en la lista de moviles');" onmouseout="minimenuInfoSet('minimenuVehiculos', '');"/>
                    <input type="submit"  value="" class="search-clean" onclick="cleanSearchMovil();" onmouseover="minimenuInfoSet('minimenuVehiculos', 'Cancelar y limpiar la busqueda realizada');" onmouseout="minimenuInfoSet('minimenuVehiculos', '');"/>
                    <span class="search-count" id="countSearchMovil"></span>
			   	</div>
                 <?php }?>
                <div class="infoBar"></div>
       		</div>
               <!-- CONTENIDO PRINCIPAL -->
               <div class="minimenuContent" id="minimenuContentVehiculosPpal">
               <!-- SEARCH MOVIL -->
                   <div id="divListaVehiculos" style="width:280px">
                   </div>
                </div>
            </div>

            <!-- CENTRO DE COMANDOS -->
            <div id="div_centroComandos" style="display:none">
              <div class="minimenu" id="minimenuCentroComandos">
               	 <div class="buttonBar">
	            	<input type="button" class="BTNback" id="comandosBackButton" onclick="cleanEstadoCentroDeComandos();" onmouseover="minimenuInfoSet('minimenuCentroComandos', 'Volver al panel de seleccion de vehiculos');" onmouseout="minimenuInfoSet('minimenuCentroComandos', '');">
                    <input type="button" class="BTNclean" id="comandosCleanButton" comandosCancelButton onclick="cleanDisplayDeComandos();" onmouseover="minimenuInfoSet('minimenuCentroComandos', 'Limpiar el display del historial de comandos');" onmouseout="minimenuInfoSet('minimenuCentroComandos', '');">
                    <input type="button" class="BTNsearch" id="comandosSearchButton" onclick="collapseBuscarComandos();" onmouseover="minimenuInfoSet('minimenuCentroComandos', 'Mostrar/ocultar barra de busqueda en historial de comandos');" onmouseout="minimenuInfoSet('minimenuCentroComandos', '');">
                </div>
                <div class="search-box" id="searcBoxComandos" style="display:none">
					<input type="text" size="15" class="search-field" name="searchMovilInput" id="searchComandosInput" value="Buscar..." onfocus="if(this.value == 'Buscar...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Buscar...';}"/>
                    <input type="submit"  value="" class="search-go" onclick="searchComandos(document.getElementById('searchComandosInput').value);" onmouseover="minimenuInfoSet('minimenuCentroComandos', 'Buscar en el display del historial de comandos');" onmouseout="minimenuInfoSet('minimenuCentroComandos', '');"/>
                    <input type="submit"  value="" class="search-clean" onclick="cleanSearchComandos();" onmouseover="minimenuInfoSet('minimenuCentroComandos', 'Cancelar y limpiar la busqueda realizada');" onmouseout="minimenuInfoSet('minimenuCentroComandos', '');"/>
                    <span class="search-count" id="countSearchComandos"></span>
			   	</div>
                <div class="infoBar"></div>
       		  </div>
              <div class="minimenuContent" id="minimenuContentComandos">
				<table>
                  <tr>
                  	<td colspan="2">
                       <span class="sectionTITLE">Centro de Comandos</span>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="2">
                      <div id="div_comandosMovil"></div>
                    </td>
                  </tr>
                  <tr>
                  	<td>
                      <span class="inputLBL">Comando:</span>
                      <input type="text" name="comandosInput" id="comandosInput" class="gmapInputText" size="10" maxlength="50" value="">
                     	 <input type="button" id="comandosSendButton" value="send" onclick="javascript: guardarComando();"/>
                    </td>

                  </tr>
                  <tr>
                    <td colspan="2">
                       <img id="comandosBusyImg" src="images/loader_bar.gif" style="vertical-align:bottom; visibility:hidden" align="left" width="150" height="15">
                    </td>
                  </tr>
                  <tr>
                  	<td colspan="2">
    					<div id="divComandosList" style="overflow:auto; width:290px; background:#F1F1F1; border:1px inset #AAAAAA; height:175px;">
				    	</div>
                    </td>
                  </tr>
            	</table>
              </div>
            </div>

             <!-- NUEVO GRUPO -->
			  <div id="div_nuevoGrupoVehiculos" style="display:none">
            	<!-- MENU MODIFICAR/CREAR GRUPO -->
            	<div class="minimenu" id="minimenuVehiculosNewGroup">
                	<div class="buttonBar">
	            		<input type="button" class="BTNback" onclick="cleanEstadoNuevoGrupoVehiculos();" onmouseover="minimenuInfoSet('minimenuVehiculosNewGroup', 'Volver al panel de control de vehiculos');" onmouseout="minimenuInfoSet('minimenuVehiculosNewGroup', '');">
                    	<input type="button" class="BTNclean" onclick="javascript: if (document.getElementById('grupoIdHIDVehiculos').value=='') cleanFormNuevoGrupoVehiculos(); else cleanFormModificarGrupoVehiculos();" onmouseover="minimenuInfoSet('minimenuVehiculosNewGroup', 'Limpiar formulario de alta de grupos');" onmouseout="minimenuInfoSet('minimenuVehiculosNewGroup', '');">
                        <input type="button" class="BTNsave" onclick="guardarGrupoVehiculos();" onmouseover="minimenuInfoSet('minimenuVehiculosNewGroup', 'Guardar el grupo creado');" onmouseout="minimenuInfoSet('minimenuVehiculosNewGroup', '');">
                	</div>
                	<div class="infoBar"></div>
            	</div>
                <!-- CONTENIDO NUEVO GRUPO -->
                <div class="minimenuContent">
                <table border="0" width="275">
                  <tr>
                  	<td colspan="2">
                       <span class="sectionTITLE" id="newGroupTitleVehiculos"></span>
                       <input type="hidden" id="grupoIdHIDVehiculos" name="grupoIdHIDVehiculos" value="" />
                    </td>
                  </tr>
                  <tr>
                  	<td colspan="2">
                       <span class="sectionDESC" id="newGroupDescVehiculos"></span>
                       <hr/>
                       <div id="newGroupErrorDisplayVehiculos" class="errorDisplay" style="display:none"></div>
                    </td>
                  </tr>
                  <tr>
                  	<td>
                       <span class="inputLBL">Nombre:</span>
                    </td>
                    <td>
                       <input type="text" name="nombreGrupoVehiculos" id="nombreGrupoVehiculos" class="gmapInputText" size="30" maxlength="100" value="">
                       <span class="campoObligatorio">*</span>
                    </td>
                  </tr>
                  <tr>
                  	<td valign="top">
                       <span class="inputLBL">Descripcion:</span>
                    </td>
                    <td>
                       <textarea name="descGrupoVehiculos" id="descGrupoVehiculos" cols="25" rows="3" class="gmapInputText"></textarea>
                    </td>
                  </tr>
                </table>
                </div>
             </div>

             <div id="div_addMovilToGroup" style="display:none">
            	<!-- MENU ASIGNAR MOVILES A GRUPO -->
            	<div class="minimenu" id="minimenuAddMovilToGroup">
                	<div class="buttonBar">
                    	<input type="button" class="BTNselectAll" onclick="checkAllOptions('boxListaMovilesGrupo[]', true);" onmouseover="minimenuInfoSet('minimenuAddMovilToGroup', 'Seleccionar todos los vehiculos');" onmouseout="minimenuInfoSet('minimenuAddMovilToGroup', '');">
						<input type="button" class="BTNunselectAll" onclick="checkAllOptions('boxListaMovilesGrupo[]', false);" onmouseover="minimenuInfoSet('minimenuAddMovilToGroup', 'No seleccionar ningun vehiculo');" onmouseout="minimenuInfoSet('minimenuAddMovilToGroup', '');">
	            		<input type="button" class="BTNback" onclick="cleanEstadoMovilesGrupo();" onmouseover="minimenuInfoSet('minimenuAddMovilToGroup', 'Volver al panel de vehiculos');" onmouseout="minimenuInfoSet('minimenuAddMovilToGroup', '');">
                        <input type="button" class="BTNsave" onclick="guardarMovilesGrupo();" onmouseover="minimenuInfoSet('minimenuAddMovilToGroup', 'Asignar al grupo todos los moviles seleccionados');" onmouseout="minimenuInfoSet('minimenuAddMovilToGroup', '');">
                	</div>
                	<div class="infoBar"></div>
            	</div>
                <!-- CONTENIDO AGREGAR MOVIL A GRUPO -->
                <div class="minimenuContent">
                <table border="0" width="275">
                  <tr>
                  	<td colspan="2">
                       <span class="sectionTITLE" id="addMovilToGroupTitle"></span>
                    </td>
                  </tr>
                  <tr>
                  	<td colspan="2">
                       <div id="addMovilToGroupErrorDisplay" class="errorDisplay" style="display:none"></div>
                    </td>
                  </tr>
                  <tr>
                  	<td width="60">
                       <span class="inputLBL">Grupo:</span>
                    </td>
                    <td>
                       <span class="resaltado" id="addMovilToGroupGrupo"></span>
                    </td>
                  </tr>
                  <tr>
                  	<td colspan="2">
                       <hr />
                       <span class="inputLBL">Seleccione los vehiculos que desea agregar al grupo</span>
                    </td>
                  </tr>
                  <tr>
                  	<td colspan="2">
                       <div id="divListaMovilesGrupo" style="OVERFLOW: auto; WIDTH: 270px; HEIGHT: 220px;">

                       </div>
                    </td>
                  </tr>
                </table>
                </div>
         </div>

        </div>
	  </div>

